Allow empty list [] in push to /v1/repositories/<path>/

Multiple pushes (with current docker master client) to the same repository path will end up sending PUT [] to /v1/repositories/<path>/.

Currently we api_error 400 in this case, which the docker client doesn't like.

This is already handled properly in update_index_images, so we might as well allow it.