UploadPackHandler must return if objects_iter is empty

objects_iter is not None if client does not want any refs.
This patch avoids UploadPackHandler to continue pack creation and raise
GitProtocolError "Server attempts to access capability before
asking client".

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>