Optimize RenderLayer::intersectsDamageRect() slightly