I have seen it come back null, not sure what is causing the error.  Good coding practice would seem to be to check the value before using it.