api_epg.c: initialize safeptr to NULL

Fix compiler warning:
src/api/api_epg.c:37:14: Error: >>safeptr<< may be used unitialized in this function