Fix for GPSCAFFOLD-91

Fix for GPSCAFFOLD-91, the isAttached is tested to avoid new instances
(when calling the action without an id).