Fix segfault if weather data queries fail

Ref #5
Move ewmh property functions to desktops.c
Add error handling for failed EWMH property fetching