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

Signed-off-by: Juha Kallioinen <juha.kallioinen@jolla.com>
Merge pull request #4 from sailfish-sdk/smallfix

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