Fix sidebar placements on certain node forms

From #5444.