Get default last action in case it is not set

Fixes #3240.