Make sure pointer to detector returned is not null