Fix error in shouldCompress() if mime type not js or css