[PATCH 5.10.y 3/3] Input: pegasus-notetaker - fix potential out-of-bounds access