Nil check that only happens on headless scenarioes