QmlDesigner: Test if declarative module exists to build qmlpuppet

Change-Id: I6aebcbcf77d95f03a85fc12fc3855ca95b9ba3ce
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>