Removed unneeded code that sometimes caused exceptions
Removed unneeded code that sometimes caused exceptions

Splaxi/dbatools,dsolodow/dbatools,kozloski/dbatools,wsmelton/dbatools,sqlpadawan/dbatools,SirCaptainMitch/dbatools,alevyinroc/dbatools