It shouldn't be hard to fix (it is a bug, indeed). Grep for "ns_pg" and you'll find some blob examples in the source to copy, if you want to try to write a patch yourself.
Either way, report this in the SDM please, and if you build a patch submit it to the SDM, too.