Wraps an expression in an if statement that checks that the expression doesn't value to null.