compositor: Attach only valid background buffers

If a background is not found,
create_buffer_from_png will return NULL.
Do not attach these buffers.
diff --git a/compositor/compositor.c b/compositor/compositor.c
index 7261dc2..cd13e4d 100644
--- a/compositor/compositor.c
+++ b/compositor/compositor.c
@@ -309,6 +309,10 @@
 	buffer = create_buffer_from_png(output->compositor,
 					filename,
 					output->width, output->height);
+	if (buffer == NULL) {
+		free(background);
+		return NULL;
+	}
 	buffer->attach(buffer, &background->surface);
 
 	return background;