[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.
Merge pull request #1636 from takethathe/update_check

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