Fix MobileDetectionMiddleware, set _is_mobile method