BUG: Fixed issue where beforeSave() was not being called when saving

Fixed an issue causing beforeSave() not to be called when saving a form with the WidgetAreaEditor present (seems to be an issue with jQuery.entwine though not sure) as well fixed a crash in sortWidgets() caused by an undefined variable.