[CAY-1969] Malformed EJBQL Yields NPE