SERVER-6947 Do not create undefined fields in db.createCollection
SERVER-8066 (1/2) Removed redundant if statement
SERVER-8066 (2/2) Skip undefined fields in mongorestore