Camera3Device: Validate template ID

Validate template ID before creating a default request.

Bug: 26866110
Bug: 27568958
Change-Id: Ifda457024f1d5c2b1382f189c1a8d5fda852d30d

status_t Camera3Device::registerInFlight(uint32_t frameNumber,
 int32_t numBuffers, CaptureResultExtras resultExtras, bool hasInput,
 const AeTriggerCancelOverride_t &aeTriggerCancelOverride) {
    ATRACE_CALL();
 Mutex::Autolock l(mInFlightLock);

 ssize_t res;
    res = mInFlightMap.add(frameNumber, InFlightRequest(numBuffers, resultExtras, hasInput,
            aeTriggerCancelOverride));
 if (res < 0) return res;

 return OK;
}

status_t Camera3Device::registerInFlight(uint32_t frameNumber,
 int32_t numBuffers, CaptureResultExtras resultExtras, bool hasInput,
 const AeTriggerCancelOverride_t &aeTriggerCancelOverride) {
    ATRACE_CALL();
 Mutex::Autolock l(mInFlightLock);

 ssize_t res;
    res = mInFlightMap.add(frameNumber, InFlightRequest(numBuffers, resultExtras, hasInput,
            aeTriggerCancelOverride));
 if (res < 0) return res;

 return OK;
}
