In your action, record yourself adding a layer. Any layer at all, it doesn't matter. Then record Layer>Arrange>Bring to Front. (That will ensure that the layer you just made is on top. If it was already on top, great!). Then, record yourself deleting that layer.
I hope this makes sense.