Merge "Fix "am profile" when run on system_server."