Bugfix for indexOf on undefined features