Fix a potential leak in thunar_action_manager_append_custom_actions
Description
I noticed this potential leak while revising !653 (merged).
I was not able to trigger the code path during normal execution, so I manually tested the branch by adding a TRUE
condition.