[webapp] preload Target class, handle empty pre-configd target add

Signed-off-by: Juha Kallioinen <juha.kallioinen@jolla.com>