Update composer.js

Wrong compare to "undefined" and name.length of undefined.
Update composer.js

Changed with typeof.
Merge pull request #367 from piron4o/master

Update composer.js