Fixes #2585. Installer showed warning for undefined variable.
Merge pull request #2586 from jerel/installer-bugfix

Fixes #2585. Installer showed warning for undefined variable.