Text module: trying to get the filename attribute didn't check for NULL. Reported by Stani Michiels. Fixed now.