Fix bug in get_entry method when no links passed