Fix an unable to load template error accessing action=topic without sub-action

Signed-off-by: emanuele <emanuele45@gmail.com>