Replace partial lookup rescue blocks.

They now have pre-emptive if statements.