Update PNLBase.py

Sometimes obj is empty