Fixed check for sortable inline models which prevented JavaScript from loading correctly.