[WFLY-2211] For domain management we may have http, https or both.

This commit corrects an issue where a NullPointerException was encountered when only https was defined.