GUAC-688: Fix segfault on resize.