Update coa.js

Update line : 379 from undefined 'config' when -f and not config output
I don't think that it's a good idea to check object with *isNaN()*.