Remove unnecessary (and wrong) code.

The onBeforeAction property hold a wrong type (string) and therefore it was not
executed at all. IronRouter expects a function type, if the property exists.