Fix NPE when searching for game context