Catch runtime exception in EditPartFactory when model is null