Fix unhandled exception on mobile (Issue 1).

Fixes "TypeError: Error #1034: Type Coercion failed" error on mobile.
See last comment here:
https://forums.adobe.com/message/4657910