Added assert when top() is called when empty()