Helps stop duplicate package declarations when user enters a pre-defined package via the gui. Fixes #827