Remove unreachable code.

For: https://rt.cpan.org/Ticket/Display.html?id=89427
Add test demonstrating that CPAN #51491 has been fixed.

For: https://rt.cpan.org/Ticket/Display.html?id=51491