todb,

I've never seen this error.  Removing this code breaks the correct execution of the post module.  

Please see https://gist.github.com/JonValt/f9d4a56fa485b016430e