Update postgres.py

When error happens, role_get should return None instead of False, or, the postgres_user.py in state will make exception.
Merge pull request #18709 from leeNicks/patch-1

Update postgres.py