Fixed first array element index. Replace it to |first twig filter
Added class sonata-ba-field-error for activate tab

Sonata js activate tab with error by "sonata-ba-field-error" css class.
See this - https://github.com/sonata-project/SonataAdminBundle/blob/master/Resources/public/Admin.js#L361
Merge pull request #126 from spolischook/patch-1

Added class sonata-ba-field-error for activate tab
Merge pull request #125 from spolischook/fix-first-element-index

Fixed first array element index. Replace it to |first twig filter
Merge remote-tracking branch 'sonata-project/master'