Bug no 1750

Second attempt.

Sometimes getHNOString ("NAME") returns an empty string.  The id checks don't really work after that. One workaround is to check the id after the record is loaded.

Not sure if additional base or modified check needs to be made.  Don't really understand that part.