Improved get method error handling.