Fix bug in GetAppLatest method, causing all wp checks after first to fail