Fix new note with empty content not saving to history and remove debug code
Fix new note with empty content not saving to history and remove debug code

jackycute/HackMD,PeterDaveHello/hackmd,aswathyjacob8/newtest,jccrofty30/hackmd,ironhack/hackmd,Yukaii/hackmd,Rwing/hackmd,jccrofty30/hackmd,aswathyjacob8/newtest,jackycute/HackMD,jackycute/HackMD,hackmdio/hackmd,hackmdio/hackmd,Yukaii/hackmd,Rwing/hackmd,Rwing/hackmd,Yukaii/hackmd,aswathyjacob8/newtest,jccrofty30/hackmd,ironhack/hackmd,PeterDaveHello/hackmd,ironhack/hackmd,hackmdio/hackmd,PeterDaveHello/hackmd