Fixed an exception in Basketball AI Demo. (recommit)