daemon: fix check for valid buxton data

buxton_client_get_value_for_layer returns true if the BuxtonData
retrieved from the db is valid, so verify validity before checking Smack
access for the data.
daemon: wrap some of the long lines