Do not attempt to set a layout if there’s none (Fixes #72)