Handle missing line number in stack trace