Fix #90: [java.lang.ClassCastException] When adding HTMLSignature to userConfiguration

Replaced:
- simple casts with instanceOf checks
- removed unreachable code
- replaced EwsUtilities.EwsAssert(...) with Exceptions