Fix install page when database is not created yet

This issue results in a broken install page when attempting fresh install of mantisbt with these two conditions:

- config_inc.php exists
- Database is not created yet

Fixes #17805