Notices/undefined vars Closes #3911.