fix user autocomplete for oracle because it treats empty string as NULL

see also #20873
Merge branch '4.0/user-autocomplete-oracle-fix' into 4.0-trunk