Fixed #20142 -- Added error handling for fixture setup

https://code.djangoproject.com/ticket/20142

This fix does not contain tests as it is impossible to test it without mocking and a decision about using mocks in the project as yet not been made. This was discussed and agreed with Russel.