test for Django version and do not use HttpOnlyMiddleware if >= 1.4