Make sure card is not null when creating ShareActionProvider