Bugfix: Allow dynamic registering of new tools

Fixing bug that cause tools to be detroyed when calling ve.ui.toolFactory.register for new tool

Change-Id: I28905b195d5a616363780cccbdfd3aa1cc463f56