Check if headers were already sent

Closes #3605600

Merge request reports

Loading