Avoid NPE's in JDBCConfig when an object was deleted by another thread and it tries to return it out of the ids list