Fix mastersRequired check on local node to avoid 2 masters when 1 is required

Fixes #4