correctly test the type of cached authority records set to -1

they're stored as strings, not ints. this fixes lots of PHP warnings and a fatal when the latest code is run with older cached authority records.

related to https://github.com/GigaOM/legacy-pro/issues/3995