[sr-dev] git:master:070057a5: auth_db: small reorder to do the check before accessing the fields