Added a check for the psim hits in the background elimation analysis to prevent a seg fault.