getpaste: fix logging
Lib.pm: the line number for last frame is sometimes unknown