Fix JavaScript error: Relations without detour key don't load