Fix some clang compiler and analyzer warnings.

These are mostly checks after getting widgets from glade files.
More fixes for clang compiler and analyzer warnings.
Print Layouts: Avoid crash when opening.

* glom/frame_glom.cc: This was another ! error from the commits to
  avoid clang warnings.