Fixes PHP Warning:  strpos(): Empty needle
Merge pull request #302 from roadster31/getbaseurlfix

Fixes PHP Warning:  strpos(): Empty needle