Add logic to check if addons package is available

Addon package is optional for Extra module builds

Change-Id: I67401516b1cbaed9b62010b71e27c35b8351f26a
Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>