#28185Redirect in FE to 1-2-3 installer broken
Description
Fix a regression introduced by #27954:
If in FE during db connect the database is not set, this is a sign for a not configured installation so a redirect to the 1-2-3 installer is done. This broke with change 89732c4a in #27954 because the check for db constant is now done too late.