could be the role that is running that script does...
# suitescript
c
could be the role that is running that script doesn't have access to the field its trying to pull a value for and therefore getting a null value