Check for null handler.