dev: gcdb: Fix null pointer dereference in GCDB

When a non-gcdb panel is initialized, for instance
using edp, a null pointer dereference will occur
when trying to determine the panel name to pass
to the kernel via command line. To prevent this,
a null check needs to be done before dereferencing.

Change-Id: Id1816d7a6d042d2931c19b93b457eeaa841289ed
1 file changed