Fixed better error handing if a view is missing