add check for SOPHIA's energy threshold
fixes CRPropa crash without error message (photopion with IRB)
Merge branch 'master' of https://github.com/CRPropa/CRPropa3