Support for https://localhost on Android (for ICS and above)

The exception is caught just below and a 404 response (web response with null body) is returned.