DDF-950: fixed cast exception in SecurityLogger when a signature header is present

Identical code change from SecurityAssertionStore in ddf-security.