Suppresses PHP notice if header was already sent so unit tests can be executed without errors