Update packages.php

function $fetch_refs - If repository doesn't have branches or tags - return empty array