Fix segfault when refreshing render window

When not rendering, hitting F5 would produce a segmentation fault, as _pixels would be empty but accessed anyway.