Add missing range-check in hotkey_dag_get_next()