Fix bug that throws exception in get_connections

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