Fix problem with null longint values not being handled properly.