Remove .get () from comparisons between shared_ptrs and nullptr