core: early domain check in electNewMaster

This patch improves the readability of electNewMaster.

Change-Id: Iaf651cf670cffa2aea1443ee33153421785534a4
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>