Fix wrong closing </div> on spaces/edit, fixes #918

Was wrongly closing a div and making the footer float on top of other
items, blocking buttons and other things.