IMEI Repair/Change OF Motorola XT1765(Metropcs , Qualcomm processor - Not MTK )
to resolve null baseband, flash the same baseband files.

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

fastboot reboot