Parse GUID from href before raising

Previously the raise happened before the href was parsed.