Fix unstopping loading when getData defer is reject

Fix the issue that loading never stops when you call $defer.reject() in
the getData method.