add fix for undefined var `$message` in index.php
Merge pull request #698 from craigh/messageFix

add fix for undefined var `$message` in index.php