Bug 981626 - [Sora][gallery]Can't be shared when select picture and video simultaneously

cherry-pick from 8206090c39f93b79821c6fa2dc26ee0ec3ba360b