Added helper function to return the proper empty variable.
Hardcoded to return and empty integer since the tnid property is the only one that uses this.
Improved empty value handling.