Handle empty shortcuts more gracefully.