Corrected VIX-274

Added sanity checks to look for null Elements prior to processing