Generate the correct Plugin AppController class.

Fixes #1401
Grammar correction.