Fixed issue with Outlook plugins that don't have a view model for the explorer

Outlook plugins that didn't have a view model mapped to an explorer
would call a null reference exception. Moved up null check to earlier
for view models so that this wouldn't happen.