fixed the issue with NullPointerException caused by rearranging the form
elements in the tree editor in stead of in the graphical editor (which
is not possible).