Fixed crash when unable to compress due to lack of permissions.