Avoid race condition in background

If the image loading finish before the window is realized, the cursor is set to None

Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org>