Properly check gdk_property_get result

Check return value of gdk_property_get in get_initial_workspace before using its result

Current implementation segfaults from to time to time if terminal is started at X session startup

Looks like #769947 bug in Debian describes same issue