Fix two assertions/crashes in compositing code
Created attachment 225333 [details] Patch
https://trac.webkit.org/r164769