Fixed bug where redisplay caused an error when called on an empty desktop