Reenable proxies if a test failed to restore it

This should at least prevent encryption tests to break other tests.

See my analysis here https://github.com/owncloud/core/issues/9646#issuecomment-49091297

Please review @schiesbn 

@MorrisJobke you might want to try this patch on Travis with the encryption tests unskipped