Handle assigning nils to comments

Changes include:

* added test
* use compact for array
Prevent nil comments from entering the comment list