uid_uri_db: safer check for accessing to header