bug fix: Properly get the graphics expiration time

The data structure to graphics is:
{
  graphics: {'passwd': '12345', 'passwdValidTo': 30}
}

Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com>