Player: fix crash when no action is present in the file
It can happen if the file doesn't contain any actions or if no shot is
present. In this last case, an optimization in the player removes the
actions after the last shot, meaning it will remove all the actions if
no shot is present.
An example is window_states_2 test where the shots cannot be taken by
the recorder, as F2 is not caught.