isom: Check if data_reference_index value is valid when adding sample entry.