[BUGFIX] Stop merging root line variables when invalid pages are encountered

Fixes: #292
Merge pull request #296 from NamelessCoder/mergedconfigstop

[BUGFIX] Stop merging root line variables when invalid pages are encountered