Fix bug in get_model, raise exception on invalid model parameter for template tag