Floater - added error handling

Change-Id: I693fd292bdb71afaa387411c1c2bf9cfef389a53
Reviewed-by: Jarosław Staniek <staniek@kde.org>