Remove reference to nil layout to fix warning error.