Improved error handling on elements not found when using views