[Download] Add listener type checking

Bug: https://crosswalk-project.org/jira/browse/XWALK-601