SONAR-4925 Fix an issue with unexpected exception thrown by proxified objects