SERVER-8066 (1/2) Removed redundant if statement
SERVER-8066 (2/2) Skip undefined fields in mongorestore