Avoid endless loop when indent is set to -1, cleanup code
Merge pull request #121 from fbraem/develop

MongoDB: Avoid endless loop when indent is set to 1, cleanup code