Previous fix in e8e06b2 worked in most cases but not if you run e.g. 'godot -', where the '-' argument would mean that 'project_manager' is false and yet that's what will be opened eventually. (cherry picked from commits e8e06b2c9a and c0df3b147e)
e8e06b2
e8e06b2c9a
c0df3b147e