Improve DBProfileEditor so hitting cancel doesn't throw an error