Add diff for adding null pointer checks to qmlcanvas.