Made getElementAttribute return a NULL value instead of nothing