Fix a small issue on get_contents method

If a user puts an unexpected value as a release or an arch we would face an issue, Fedora package api will return a 500 error so the result will be very confused.