Improved error handling when API returns no tags object