Fixed a bug that was crashing pgModeler at startup when restoring
previous sessions or temp. models.