Fixing IllegalStateException as reported in https://www.bugsense.com/dashboard/project/f42265ac/errors/1539128063