Removed the code that was never being executed

The code was never being executed because `$appModel` always has the value and consequently the check for the empty `$instance` is never true.