CRM-13072 a bit of extra getcount error handling