better mongodb errorhandling during json conversion. more consistent resolving of lists