Tidy up code in pdf_load_compressed_inline_image

After rushing to get the fix for a crash in, I realised the
routine could be simplified a bit.
Various android fixes.

Update Android build to cope with new stream implementation.

Fix a couple of typos in the android build files.
Fix Android build w.r.t. mujs.

The get_globals helper function only works on non-class objects.
Hence 'MuPDFCore_javascriptSupported' can't be a static function.
Solve crash (NullPointerException) when cancelling from password prompt

Attempt to open a file that needs a password, and you will get a
dialogue box. Hit cancel on this, and the program crashes.

This is due to an attempt to release the bitmaps on a document
view that does not exist. Simple fix.