Bugfixes in spellchecker.php

some fixes:
 - error handling of existing aspell wasn't incorrect
 - header for html was send to early