[FIX] mrp: Fixed the issue of maximum recursion depth exceeded when phan...

...tom BoM has no BoM lines (Maintenance: 612759)