! [Upgrade] Closures caused syntax errors in upgrade.php for php < 5.3.8

ref: #1798 

However, there is still an error: QueryString.php is loaded before the php version check is done, causing syntax error for php v 5.2.

Signed-off-by: Angelina Belle <angelinabelle@hotmail.com>