check whether jpeg end marker is missing