Core: [NMDC] Prevent crashes when receiving malicious search requests

http://sourceforge.net/p/dcplusplus/code/ci/1d751b2467b5af9b921e694bca29ee47f5311608/
doc up