Add default value (and log warning) if applicationId is null

Fixes gh-86