Fix NoneType Build Errors Crashs On Linux

Added truth checks.
Irritating after waiting 30 for each build to only crash and fail at the end because truth checks disappeared.
- Absolutely NEEDED Truth Checks.
- Trim Trailing Whitespace
Guess I got the right repo this time? - MCow

Anywho, This file doesn't seem to exist in the wxPython repo.
modified and cleaned from wxPython-src-2.9.5.0.tar on wxPython Homepage.