Update Framework.php

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