This fixes the nonetype error seen during lifecycle hooks issued during
platform backup. An additional none check was added so that a none type
does not get passed to the rstrip function that caused the issue.
Test Plan:
PASS With the changes, no lifecycle error is caused by the portieris
app during platform backup.
PASS Portieris application sanity test
Closes-bug: 2087987
Change-Id: I4c7204f5aaa72871a5818be834249e7274cbaff7
Signed-off-by: Tae Park <tae.park@windriver.com>