Camera: Fix out-of-order operations while setting up the editor

The buffer's producer is created by the cache pipeline generation,
so verifying that it isn't null before calling compute() is wrong.

This breaks a few devices, and should actually break them all, so
fix it; only check if getProducer() is valid after running setProducer()

Change-Id: I9d7d03fa9c9eb7063daef2ae28a78cd70b7a5ef3
TRDS: Darker Gallery

Change-Id: I632b252280118f61f356f4a6dae1039e02b82241
Merge branch 'kk-4.4-caf' of https://github.com/TheSchismROM/android_packages_apps_Gallery2 into kk-4.4-caf