Fix haml/html5/inline_menu - don't remove space after submenus

Space after the last submenu should not be removed, i.a. to be consistent
with Slim and built-in version of the template.