drop unneeded var_dump - fixes #9997

cc @DeepDiver1975 @LukasReschke 

There is not a single bug report with this exception in it. Also this is just shown to the user and not logged. Therefore it's often useless and maybe leak info.