Node.js: Bugfix for checkMIME() after metadata refactor