Not allow to pass an empty actions to viewset.as_view()

Validate actions value when invoke as_view(), raise a TypeError if no actions was passed in.

Refs #2171