fix #727 Refresh manager not resumed after an exception in a module controller

Close #735
(cherry picked from commit 74dc02ae666b09caca13e34f2882fd191a8608b7)

Conflicts:
	test/aria/templates/TemplatesTestSuite.js
fix #727 jshint issue with old build (1.2.7)
1.2.7I