I guess that nominatim doesn’t store the information for all nodes in the OSM db, only for those which have a place_id.