[BUGFIX] Use proper fieldname to check result in getFirstTimeValueForRecord()