Fixes NPE in GUI drawing.

Signed-off-by: Adrien <berthet.a@gmail.com>