Fix error when classList is empty, fixes #4

When the module is loaded with the default configuration then an error occurs when generating the Direct API, this should not happen during a clean install.