avoid crash due to class cast exception when getting a BinderProxy object onServiceConnected.