[BUGFIX] Route dispatching: Don't rely on id being an integer