Issue #2317273 by DanChadwick: Fixed allowing submission of closed draft webform; fixed PHP notice.