Fixed warning from Regexp about patterns not matching word boundaries.

With an misleading Regexp pattern, resulting in '\b:foo\b/', the warning was
attempted to be written to the obsolete Log. This fix raises an exception
instead.