prevent add observer for nil object.