fix inconsistent write/deref in action config processing

Thanks to Tomas Heinrich for alerting us.
Merge branch 'v7-stable' of git+ssh://git.adiscon.com/git/rsyslog into v7-stable