Don't ignore nil during aliasing. Attempt to fix #1159
Merge pull request #1160 from jjh42/alias-nil-correctly

Don't ignore nil during aliasing. Attempt to fix #1159