Issue #2199391 by sylus, irodriguez | lmeurs: Javascript error "Cannot set property 'Layout' of undefined".