Fix no nullptr check in application index