Fix behaviour of Connection::delete when an empty array of criteria is provided