Fix has() implementation to be loader agnostic

Verified using require.js with Intern. Added missing functionality using dojo.js has implementation.