There is no way to translate the parsha returned from getUpcomingParshah API.
formatParsha uses internally the old getParsha API what returns JewishCalendar.Parsha.NONE if the date is a weekday or if there is no parsha that week (for example Yom Tov that falls on a Shabbos).
The problematic code can be seen at line 1056 of the formatter.