add try-catch for assign_masses_on_profile
fix warning
add mass assign for unknown spectrum
fix centroid for start with 0us profile tof