Fixed undefined index notice as reported by szepeviktor in issue #135