And invalid URI should raise RefererParser::InvalidUriError instead of NameError

There's a syntax error in the rescue/raise of InvalidUriError. The syntax error causes the following error:

NameError: undefined local variable or method `error' for RefererParser::Referer:Class

Added spec and bug fix.