Fix a couple of PHP warnings

2 warnings show if `elasticsearch` settings not saved.
Dropped end PHP tag/new line to prevent output buffering (see http://www.php.net/manual/en/language.basic-syntax.phptags.php).