WP-1277: Improve HTTP handler's robustness

Gracefully handle invalid ref parameters. Currently PZP crashes when HTTP handler is passed an invalid ref.
-> We still need to address underlying issue that sometimes an invalid ref is returned. Happens occasionally on Android when performing a bulk getLink request for image thumbnails.