Fix notice in WP debug mode

When WP is in debug mode, line 1910 will give a "Notice: Undefined offset: 1" which is easily fixed by adding an isset to the line.