emberjs/ember.js — pull request #2475 by amindunited (2013-04-15 00:28:47+00:00)
Title: Issue #2388: Added if statement to _resetSubControllers

Adding this if prevents forEach from running (and throwing an error) when there are no _subControllers.