Check for null in groovy template