Avoid false unit test fail when platform.js cannot detect the `platform.name`. [closes #61]