Fix of CORS filter when using Guice

as per #758