Fixed .persisted? error on nil