Fix for RESTEASY-864

Check value for null before trying to convert to string

Fixes https://issues.jboss.org/browse/RESTEASY-864

NOTE: wasn't sure if we should put empty string "" or the string "null", so I split the difference between the 2 locations.  I have no preferences.