Fix fatal errors if activesync configuration is incorrect
Need to check validity of 'storage' parameter also