Add possibility to test contentful credentials before import data

We should catch the actual error here and not StandardError.