Camera3Device: Validate template ID

Validate template ID before creating a default request.

Bug: 26866110
Bug: 27568958
Change-Id: Ifda457024f1d5c2b1382f189c1a8d5fda852d30d

void Camera3Device::sProcessCaptureResult(const camera3_callback_ops *cb,
 const camera3_capture_result *result) {
 Camera3Device *d =
 const_cast<Camera3Device*>(static_cast<const Camera3Device*>(cb));

    d->processCaptureResult(result);
}

void Camera3Device::sProcessCaptureResult(const camera3_callback_ops *cb,
 const camera3_capture_result *result) {
 Camera3Device *d =
 const_cast<Camera3Device*>(static_cast<const Camera3Device*>(cb));

    d->processCaptureResult(result);
}
