Fixed getEvents return on empty events