eal: fix detection of duplicate option register