Prevented "transform" function from being called with a null argument.