add check for NANs in dead-time correction