Prevent undefined index on post without action

Bug introduced in 26f704edc1a6242f09468cba6a5ed60a6bd30209