Fixed NPE in open command where team did not exist