Catch exceptions from message handling.
Detect and remove zero-byte from base64-encoded PNGs.