Fix hidden field logic in tabular inlines

This brings the hidden field logic in grappelli-safe up to date with the current Django admin templates.