Fix unstopping loading when getData defer is reject

Fix the issue that loading never stops when you call $defer.reject() in
the getData method.
Merge pull request #143 from quick691fr/master

Fix unstopping loading when getData defer is reject