isec: Do not attempt to output non-existent lines

when writing to stdout