detro/ghostdriver — pull request #75 by jimevans (2012-10-01 22:15:53+00:00)
Title: Guarding against improper post data in getActiveElement

The req.post value can in some cases not be a string, so JSON.parse will throw. This fix guards against that possibility.