Update backbone.layoutmanager.js

Fixes a bug where it tries to fetch layouts from models where template is set to a template function.