(AutocompleteType) Fixed issue when passing ContentAdmin

(cherry picked from commit a504e14)