Replace deprecated getAttribute method.

Replace Form#getAttribute with Form#Config#getAttribute.
The Form#getAttribute method was deprecated in sf2.1 and removed in
sf2.3.