Fix: [ bug #1768 ] PHP Warning when error connecting to a PostgreSQL server in install script

Fix: [ bug #1768 ] PHP Warning when error connecting to a PostgreSQL server in install script