[Runtime] Fix cannot get right application's permissions information from database.

Crosswalk runtime can not get the permissions information from database
since there's a mistake in source code after some reconstructions. This
patch try to solve this.
Merge pull request #2132 from takethathe/app_storage

[Runtime] Fix cannot get right application's permissions information from database.