Fixed scope_for_rebuild, NULL values cannot be compared with SQL = operator.
Merge pull request #206 from gregd/master

Fixed scope_for_rebuild, NULL values cannot be compared with SQL = operator