Update controller check to have spree namespace.

Fixes #2686