Improved the error management for the Get() method.