Wrap get_data_by_slug, abort 404 if missing data.

def get_data_by_slug_or_404(model, slug, kind='', **kwargs):
    """Wrap get_data_by_slug, abort 404 if missing data."""
    data = get_data_by_slug(model, slug, kind, **kwargs)

    if not data:
        abort(404)

    return data