Fixed NPE occurring if the there is no commandUIFactory (e.g. in NetBeans)