implement error handling in AttributeReader

respective tests pass in Safari and FF, also if an older version of OpenLayers is used. TIA for any review.