core/renderbackend: check for the renderloop being deleted
Output frames can outlive the output they were created for, so the render loop might also be deleted by the time the output frame is destroyed or presented
(cherry picked from commit 0c5ee478)
Co-authored-by: Xaver Hugl xaver.hugl@gmail.com