Add check so main connection is not deleted prematurely
Add check so main connection is not deleted prematurely

This affects any DatabaseConnection whose clone method returns itself.

RabidSQL/rsql-backend,RabidSQL/rsql-backend,RabidSQL/backend,RabidSQL/backend