SLING-3742 - Python and Ruby language bundle throw exception with sling scripting console

Ensuring that request is not null before check for GET request is performed. Applying patch from Nitin Nizhawan Thanks!

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1609022 13f79535-47bb-0310-9956-ffa450edef68