Polidea/issue/425/npe cursor factory

This pull request fixes issue 425 in Robolectric.

Moreover, I've added dependency to latest maps (r3) and catch-exception library to simplify exceptions handling tests.