Fix NPE which was occuring when requesting a completed aggregation.
Also, writing a dummy output file in dev mode.
Merge pull request #17 from aodn/npe_fix_for_get_aggr

Fix NPE which was occuring when requesting a completed aggregation.