Fixed bug that occurred on edit when the domain class instance could not be found. Now simply throws a DialogException