menubar.c : fix GError usage

GError condition was always verified, and eventually leaked
memory.