[misc] Prevent JS errors when using patient sheet specific widgets outside patient sheets