Fix crashing when no subactions are found