Improve handling of null values

Certain key/values being sent from CWM (such as active desktops) might not
have any data associated with them---such as in the case of no active
desktops.  Handle this better when splitting out the information to avoid
perl warnings.