Do not try to access entries when no layout has been applied. Add tests accordingly