Fixes a bug when an empty adapter is set on a FreeFlowContainer with out-of-the-box layouts

This fixes a null pointer exception if a Container is set an empty adapter.