Don't send an emtpy ref to the client

The api will return Not Found when sending an empty ref.

A this is default behavior in most of the Api classes I added a check to remove this value.

ex invalid call:
`curl -i https://api.github.com/repos/KnpLabs/php-github-api/contents/lib?ref=`