Added error handling to Text pixel height accessor