Fix handling of aai 'get' errors