The important phrase here is ``if there is no selection`` I'll verify this, as I now understand your problem with that change :).