[actor] emit error if error param is not function

if error callback is not function also emit error signal. Output
information about error to stderr

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jollamobile.com>
pass actor callback as this to itself

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jollamobile.com>