Check if there is an active gateway selected.

The active gateway cannot be null.
Merge branch 'hotfix/start-eip-null-pointer' into develop