svga: add null vs pointer check in update_need_pipeline()