Fix notice and warning catching in web output