check for WAL receiver if node is hot standby

Moving the check for a WAL receiver only if the node is a hot standby.  
This prevents the a warning from populating in the log file of a master.