Bugfix: .done() was automatically called at resolve time even if empty.