command: Don't pass through on_submit when command has just been resolved

Fixes issue #19