agl-compositor: Add NULL check after creating surface/view