MDL-46054 web_services: bug fix in core_user_get_users

Thanks to Mikko Rantanen for the patch