Refactor the validation for GetAttrib functions to a single shared method. TRAC #23391 Signed-off-by: Shannon Woods Signed-off-by: Geoff Lang Authored-by: Jamie Madill