Bug 1027950 - [Settings][Find My Device] Do not attach handlers inside onerror callback

See Bugzilla bug for discussion.
same here.