[PATCH v2 2/3] server: Return NULL from get_next_hook when no hook is found.