Fix bug with ByteArray implementation based on Qt version < 5.0.