Fix RewriteUrl error when BuildError raises
Fix RewriteUrl error when BuildError raises

RickyCook/DockCI,sprucedev/DockCI,sprucedev/DockCI-Agent,sprucedev/DockCI,sprucedev/DockCI,sprucedev/DockCI-Agent,sprucedev/DockCI,RickyCook/DockCI,RickyCook/DockCI,RickyCook/DockCI