Catch exception in case api module couldn't be loaded

Fixes startup of PZP/PZH in case of faulty api module config. It logs the
error but continues starting up.

Jira-issue: WP-647