Improved a.attributes handling and changed overlay handling so failed layer retrieval doesn't prevent anything else from displaying