shell: Fix a potential NULL pointer dereference

get_shell_surface() may return NULL. Found by scan-build.
diff --git a/src/shell.c b/src/shell.c
index abed1c7..804a57e 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -1373,7 +1373,8 @@
 	    workspace_has_only(to, surface))
 		update_workspace(shell, index, from, to);
 	else {
-		if (wl_list_empty(&shsurf->workspace_transform.link))
+		if (shsurf != NULL &&
+		    wl_list_empty(&shsurf->workspace_transform.link))
 			wl_list_insert(&shell->workspaces.anim_sticky_list,
 				       &shsurf->workspace_transform.link);