Common JS API generator fix: constants with no name should be skipped