Adding config validation to fix #834.

Besides that ticket it is clear that many issues opened that stay open for a long time
has as origin this issue. Users misconfiguring things and not being able to easily figure
out which dependency they are missing.
Reraising the exception with the same stack trace as before as per @dcramer suggestion
correct indentation