Handle empty endpoints params in web.xml better