plugins/odmbc: Don't create an object if the location is invalid to avoid memory leaks