Fix redirect on node forms, when using the cancel button

#3964