Fixes issue resolution JSON write.

- Adds filename check for class Issue.