Reset cursor when layer is removed

This fixes a bug that occurs when you remove a layer with pointerCursor: true, and the cursor doesn't revert back.