Fix fatal errors if activesync configuration is incorrect