[Runtime] Should provide the application id exactly the same as the installed one.

Current logic in Update() only check whether the provided id is not
empty, so change it to check if the expecting application id is the same
as the installed one.