Add regression test case for magn4838

Add regression test case for [MAGN 4838: VM bork when passing null to List.Map] (http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-4838#tab=History).

@Benglin for review.