[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.