Measurement-device-independent Quantum Key Distribution with Uncharacterized Qub