Created attachment 275636 [details] patch
This check would greatly reduce the chance of committing a port with nonexistent, altered, or invalid dependencies.