Corrected problem where if the final contig contained a gene then the script would error - Added  to line 83.