Properly check for null in next and previous for the Lists. Fixes #43