Handle exception in paste getter