Fix issue with incorrect value for getContextPath() at the root context