Fix layout load check

The check was checking for string, and if it is a string, it would try
to load the controller default layout/app default layout, which is
wrong. This should happen when layout property is in fact set to bool
true.