Check that configuration exists before trying to access it.
Merge pull request #100 from henrikerola/master

Check that configuration exists before trying to access it. #99