fix: missing bound check on populating context menu

How to reproduce: go to addon browser. Try to open the context menu on something you shouldn't (like on the side bar). It will segfault.

I checked all the other `GetContextButtons` implementations, I think they are fine.