Fix bug in get_connections that caused an exception when passing an int for the id param