Fix a debug-mode NPE in single player in last commit.