Fix for partial caching of layered web tiles. Composite tile mages are only added to the cache if all layer images have been loaded successfully.