Fixed bug that was crashing pgModeler when a error was raised on view
edit form (issue #407)