MDL-43334 Backup: Output header after backup status has been processed

This specifically deals with an issue where headers were output before the
controller had checked whether the backup had been cancelled. In this case,
the page must redirect but could not do so reliably because headers had
already been output.