- Added some checks before calling ->getText in some instances, null's could be returned there which caused errors.