Update Framework.php

Prevent "Action index is not valid" error when requesting admin/plugin/ directly.
Thx andrewmman
Merge pull request #597 from svanlaere/patch-1

Prevent "Action index is not valid" error when requesting admin/plugin/ directly.