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 
Great, it looks like more friendly. let me rebase the code.