Hello,
You cannot disappear the border color in case of no content in Module because it applies on the Module Position not on the content. So, if you are showing the module position then it will appear in no content case also.
If you want to remove the border color then unpublish your module on that module position in case of No Content in the Module. Also, you can manage it by using custom CSS for that module position.