Fixes for ajax-based user id fetcher.