Fix stale command with stdout is not allocated
Fix nil pointer on some situatuion
Fix typo
Merge pull request #804 from dotcloud/no_stdout_stale-fix

*Runtime: Fix stale command when stdout is not allocated