fix errors that prevented mongo connector from running

Fixed a TabError with mixed tab white space and a problem with trying to run the postproc if it's not defined.