Read the sessiondata only if requestdata is not null.
Append Character instead of a String when possible

(cherry picked from commit de424fed2fbf5b4ce1b46b5abf466c3a0576d17f)
Small perfomance improvement - Component#isAuto() walks the parents so it is more expensive than the other checks.
Always check it last.

Pointed-by: Yourkit
(cherry picked from commit a5ed5f3672513c0b5ec6415bd8e05317da3c3012)