Merge pull request #298 from fredrik-w/silence-e_notice

Silence E_NOTICE warning: "Undefined index".