Added an empty check to cleanup profile notice.  #2855