Added check before storing SRS as EPSG, to make sure that later can be decoded

fixes #274
Merge remote-tracking branch 'origin/pr/275'