Mark CommandProcessor as initialized and check before using

When calling ProcessCommand() without having intialized the CommandProcessor, commands are processed, but the EventDispatcher and ViewManagers are not, causing not initialized exception when dispatching events to view managers.