PHP reserved variables never start with $wg, skip them

A typical example is using the $argv global in a maintenance script.

Change-Id: I453945243bc3f689364f4f7a8b63fb8a0c6422c0