be defensive about finding next_marker.