thorium: make sure that the action specifier is not ACTION_INVALID

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>