Hey Markus,
Have a look at this thread:
Do Shell Script Grep Action Fails When Script Returns Nothing
-Chris
For more information, see the wiki Searching the Forum for Answers section.