refactoring: modified logic to consistently perform null checks, set rule error status
Merge branch 'dev' of https://github.com/votinginfoproject/Metis into dev