Fixes crash with only one virtual desktop.

Encountered this bug. Runtime tracebacks are awesome.