Sorry thought I included the file. Open applications/core/modules/admin/applications/applications..php
Find this code and replace with the above code I mentioned:
catch( \PharException $e )
{
\IPS\Output::i()->error( 'application_notvalid', '1C133/9', 403, '' );
}
Now try and upload your tar file again and it should print out the exact Phar exception.