[mms-lib] Added test for handling broken JPEGs