Show warning dialog instead of hiding the star item
I think it's going to be useful to allow starring elsewhere, but tell the user when it cannot be done and how to fix it. (Go to control-center, add directory to tracker).
Although it's not the best solution, it could be a stopgap solution until Tracker has an API to track specific files. This is proposed as gsoc project for this year.