Added a safety fix to playptmod for handling IFF headers in sample data with loops