Avoid null pointer dereferencing (was breaking stressgraphics)