handle null lookup for hwmod if UART is enabled

Change-Id: Id4f604d4281fa61fa8ab26932f04a872874f72c0