I doubt anyone would need this, but just in case, here is a simple Xposed module to disable the screenoff when the magnet sensor detects some magnetic field around (e.g: cover)
http://tinyurl.com/qbpjv22/MotoMagnetOff.apk
http://tinyurl.com/qbpjv22/MotoMagnetOff.apk