[PATCH 1/1] server: Return NULL from get_first_valid_hook when no hook is found.