Update loader.js

Node v0.10 no longer silently ignores non-string values, but throws an exception.