Patch from Javen ONeal from bug #58254 - CellFormatResult.text should check for nulls as per the javadoc