Only insert footer if wrapper is defined