We never pass a submission to _get_last_action
Simplify _get_last_action

There is no need to perform several queries.