IR: Remove MDString logic for Value::hasName()

This isn't necessary after r221960.