jb_err_to_string(): Only check for internal errors once