use notice.present? to prevent to show up blank string notices [Fix #595...

...13140]