Improved error handling on resources search page'