fastboot flash the December 2017 patch stock ROM and then before customizing it, take the Feb 2018 ota. After this, root and do other stuff. The stock ROM is available in the Guides section of the Moto G4 plus XDA forum and the thread is maintained by rajatgupta1998. All instructions are in the same thread.