mainWindow: don't require a parent window

If e.g. zero is passed, don't fail.
This can be useful for scripts that launch sushi from outside of
Nautilus.