Replace @ in front of header() with a test

The @ is bad practice I think, I do not know if Piwik care about it. But if the goal of this one was to hide the "headers already sent" error, I suggest to test it explicitly.