webpack/weblabels-plugin: Read package.json file only when required
Some module folders do not have package.json file in it but licenses can
still be overridden using the licenseOverride option of the plugin.
Previously, package.json file was attempted to be read regardless of
possible license override, which was causing error.