Fix to pass tests: Make sure that we find an apikey before trying to
convert.