Fix crash on API 7 and 8: remove String.isEmpty() call (API 9)