Fixes possible NoSuchElementException hiding the underlying cause due to misplaced Database.Static#overrideDefault call.