gtkstack: fix null pointer dereference

The gtk_stack_snapshot_slide() function dereferences the
last_visible_child pointer without proper != NULL ckeck. This might
result in NULL pointer dereference and crash if last_visible_child is

Add a != NULL check before dereferencing the pointer.
6 jobs for master in 28 minutes and 48 seconds (queued for 3 seconds)