Merge "Fail gracefully when allocating screenshot buffers" into tm-d1-dev