added isNull checks to work with Railo 4.1 "null" feature