Bugfixes in FormParser: <Location> parsing and getCurrentPage()

Signed-off-by: Matthias Stevens <matthias.stevens@gmail.com>