Refactoring of fallback check inConnectionType

Description

The code can be simplified a bit to make it easier to maintain. Graciously provided in https://github.com/igniterealtime/Openfire/pull/1652

Environment

None
Fixed

Assignee

Guus der Kinderen

Reporter

Guus der Kinderen