Check if val is null/undefined in get()

Not actually sure how the cache is working - but this is my best guess at how to check for null/undefined, to preserve '0' values returned from the ModelProto.get.call()