Fixed the java conditionals so that OEM gives the proper response for
null emails.