Handle null paths and callback