I'm attaching a patch with what I think is the fix. Basically ConnectionProvider is not initialized correctly.
Please review and let me know if I'm wrong about this
"Small is the number of them that see with their own eyes, and feel with their own hearts" Albert Einstein