Outlook plugin without view model for explorer causes error

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.