Check if ids is None
Remove conn.getImages(). See PR 2480
Remove gatewaytest TestGetImages