Fix exception in phing error handling

Fix for:
[Notice] Undefined variable: php_errormsg (@line 58 in file phing/classes/phing/system/io/FileOutputStream.php).
Merge pull request #240 from ctrlaltca/patch-1

Fix exception in phing error handling