Minor fix to waitForElement function
maven release for the wait fix