[0.6][registry] Improve exception messages for getStorageForClass method.