SERVER-13760 added check on source collection size before running mongoexport

(cherry picked from commit 0f45edb3e83bef553ae70c4cbab4c08319f2fd61)
Merge remote-tracking branch 'upstream/v2.6' into v2.6