[#41841357] Fix exception handling in database refresh for Gpdb data sources