Handling malformed href node