Avoiding writing NaN to annotated csv file.