This reverts commit 035bb99d67b59a84cfc2e911d222fb597591a8be.
Not checking tree != NULL
result in a segfault if the surface doesn't have a
role (for example because it is a newly created surface)
Closes: https://github.com/djpohly/dwl/issues/359
VFXJWZRYSP7YILLNYFK4I2UUS2JB3HTHJKJARIERQAPJ2EW3H3RAC