Camera3Device: Validate template ID

Validate template ID before creating a default request.

Bug: 26866110
Bug: 27568958
Change-Id: Ifda457024f1d5c2b1382f189c1a8d5fda852d30d

status_t Camera3Device::PreparerThread::clear() {
 status_t res;

 Mutex::Autolock l(mLock);

 for (const auto& stream : mPendingStreams) {
        stream->cancelPrepare();
 }
    mPendingStreams.clear();
    mCancelNow = true;

 return OK;
}

status_t Camera3Device::PreparerThread::clear() {
 status_t res;

 Mutex::Autolock l(mLock);

 for (const auto& stream : mPendingStreams) {
        stream->cancelPrepare();
 }
    mPendingStreams.clear();
    mCancelNow = true;

 return OK;
}
