fix three notices

Described in http://wordpress.org/support/topic/fix-for-undefined-index-plugin-errors?replies=3

First two of three fixes c/o @TatumCreative