camera: check Intent entry count before reading it

In case when find() returns empty entry, blindly
reading the entry will cause segfault

Change-Id: Ib5be7fd855c409ba3b45f0d43e15237367172817
Merge "camera: check Intent entry count before reading it"
auto-merger: merge in from aosp/master