Fixed exception handling for missing endobj keyword - file can be read
nevertheless.