This commit fixes #42.

Check ribbonTaskPanes to see if it contains the view model before trying to retrieve the view model.
Merge pull request #43 from jpeterson-isdc/no-custom-pane

Check ribbonTaskPanes to see if it contains the view model before trying to retrieve the view model.