* LIST_GetRandom: on empty list, return nullptr instead of crashing.

Signed-off-by: drane <drane@users.sourceforge.net>
* const in LIST_GetRandom and added unittests for it