Fixed null error while parsing page url