Actually, you don't need the master password to recover. Reusing master hash (MASTER_PUB_HEX) works just fine.
https://gist.github.com/aexaey/3646bb438f8712cbadf5/revision...
Scroll to the third change from the top - stupid github doesn't allow (an obvious) way to make a direct link to a particular gist's revision.