Fix broken master due to dangling else block.
Merge pull request #1949 from AndrejMitrovic/FixBuild

Fix broken master due to dangling else block.