return null instead of method on non-object error
Merge pull request #24 from arcturial/master

GetCurrentUrl() return null instead of fatal error