core: fix error when submitting "View Diff" dialog

This action was working fine the first time displayed, but clicking
again on "View Diff" button was causing an IndexError: list index out of range
when used on one document.

This was because in this case list_selection_name exists in REQUEST, but
is an empty string. Instead of checking that this selection name is not
None to detect if we are in module mode or in document mode, check that
its true-ish to also tolerate an empty string.
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-TestRunner2

01:09:41

failed ERP5.UnitTest-TestRunner2

03:20:26

failed ERP5.UnitTest-TestRunner2

03:12:35

canceled ERP5.UnitTest-TestRunner2