Added exception handling for missing tables and DMVs

Some base tables and DMVs don't seem to be in my master.mdf. Its possibly because I am looking at an empty database. Regardless, this is good error handling to have.